package com.chenjf.order.fegin;

import com.chenjf.order.dto.OrderDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("spring-cloud-order-service")
public interface OrderOpenFeign  {
    @GetMapping("/userOrderList")
    String  userOrders();

    @PostMapping("/orderInfo")
    String orderInfo(@RequestBody OrderDto orderDto);
}
